<%-- 
    Document   : cart
    Created on : 2020-5-8, 16:26:36
    Author     : 123
--%>

<%@page import="java.util.List"%>
<%@page import="com.helloworld.entity.Book"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <div>
            <%
            List<Book> list=(List<Book>)request.getAttribute("ordered_books");
            
            for(Book book:list){
            %>
            <a >
                <div border="1px">
                    <img src="img/<%=book.getBookid()%>1.jpg" alt="<%=book.getBookname()%>" style="width: 200px; height: 260px;">
                    <p><%=book.getBookname()%>[<%=book.getBookauthor()%>]</p>
                    <p><%=book.getBookprice()%></p>
                    <p>数量：<%=book.getBooknum()%></p>
                </div>
            </a>
            <%
                }
            %>
        </div>
    </head>
    <body>
        
    </body>
</html>
